#ifndef ClickAnimateControl_H
#define ClickAnimateControl_H

#include "globalmouse.h"
#include "animatewindow.h"
#include <QObject>

class ClickAnimateControl: public QObject
{
    Q_OBJECT
public:    
    ClickAnimateControl(double time, int diameter, bool radiant, double opacity);
    virtual ~ClickAnimateControl();    

public slots:
    void animateWindowOn();
    void animateWindowOff();
    void setDiameterColor( int diameter, QColor color );
    void setShowTime( double value );
    void setOpacity( double value );
    void setRadiant( bool value );
    void pointerOnOff( bool value );
    void setIsShowPath(bool value);
    void setIsShowClick(bool value);

private slots:
    void mousePressed( int x, int y );
    void mousemove( int x, int y );
    void closeWindow();

private:
    GlobalMouse *m_globalMouse;
    AnimateWindow *m_animateWindow;
    double m_showTime;
    bool m_isShowClick = false;
    bool m_isShowPath = false;
};

#endif // ClickAnimateControl_H
